package com.point_of_sale.product;

public class NormalProduct extends Product
{
	public NormalProduct()
	{
		super();
	}
	
	@Override
	public Float getPrice(Integer quantity) 
	{
		return super.getPrice() * quantity;
	}
	
	@Override
	public boolean equals(Object o)
	{
		return super.getProductCode().equals(((NormalProduct)o).getProductCode()) && super.getPrice() == ((NormalProduct) o).getPrice();
	}
}
